/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.DigitalOutput;
/**
 *
 * @author Dean Fitzpatrick
 */
public class RobotLED {
    

DigitalOutput imput1;
static int digitalchan;

public RobotLED(int channel)
{
    digitalchan = channel;
    imput1 = new DigitalOutput(digitalchan);
}

public void turnonLED()
{
    imput1.set(true);
}

public void turnoffLED()
{
    imput1.set(false);
}       

public void sendpulse()
{
    imput1.pulse(digitalchan);
}
    
public boolean checkpulse()
{
    boolean pulse = imput1.isPulsing();
    return pulse;
}
    

}
